/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FramePk.java
 *
 * Created on Oct 16, 2011, 1:04:41 PM
 */
package FramePk;

import InterNalFrame.LineChart;
import STOCK.STOCK;
import java.awt.Toolkit;
import java.sql.SQLException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

/**
 *
 * @author Anatomy
 */
public class FramePk extends javax.swing.JFrame {

    /** Creates new form FramePk */
    public FramePk() {      
       

        initComponents();
            Toolkit tk = Toolkit.getDefaultToolkit();
        java.awt.Dimension screenSize = tk.getScreenSize();
    int screenHeight = screenSize.height;
    int screenWidth = screenSize.width;
    this.setSize(screenWidth, screenHeight-160);
    this.setLocation(0, 80);
    this.setTitle("Line Chart");
    FrameSizeFull.setSize(screenWidth-40, screenHeight-240);
   try {
            java.awt.Dimension size = FrameSizeFull.getSize();
                   LineChart LC=  new LineChart(size,STOCK.txtsymbol,STOCK.txtinterval,STOCK.cbAnalysis);  
                        LC.setVisible(true);
                        LC.setEnabled(false);
                        FrameSizeFull.add(LC);
                        
                       
                        
        } catch (SQLException ex) {
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        FrameSizeFull = new javax.swing.JDesktopPane();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FrameSizeFull, javax.swing.GroupLayout.DEFAULT_SIZE, 877, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(FrameSizeFull, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
      try {
             Properties props = new Properties(); 
             props.put("logoString", "SEDSS");
             com.jtattoo.plaf.acryl.AcrylLookAndFeel.setCurrentTheme(props);
                
        
            UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(FramePk.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            Logger.getLogger(FramePk.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(FramePk.class.getName()).log(Level.SEVERE, null, ex);
        } catch (UnsupportedLookAndFeelException ex) {
            Logger.getLogger(FramePk.class.getName()).log(Level.SEVERE, null, ex);
        }
       
        
     
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new FramePk().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JDesktopPane FrameSizeFull;
    // End of variables declaration//GEN-END:variables
}
